package com.example.ndkjnidemo.home.staticregist;

import android.content.Context;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.ndkjnidemo.databinding.ActivityStaticRegistBinding;


public class StaticRegistActivity extends AppCompatActivity {

    private ActivityStaticRegistBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        binding = ActivityStaticRegistBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        //===
        Context context = getApplicationContext();
        JNIMethodStatic jni_test = new JNIMethodStatic(context);
        String text = jni_test.stringFromJNI();
        binding.sampleText.setText(text);

        ExternClass externClass = new ExternClass();
        String from = "from StaticRegistActivity";
        jni_test.transmitToJNI(from, externClass);
    }

}